home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor1 / reversi.doc < prev    next >
Text File  |  1995-03-31  |  4KB  |  91 lines

  1. (Comp.sys.handhelds) 
  2. Item: 1481 by grue at batserver.cs.uq.oz.au 
  3. Author: Paul Dale 
  4.   Subj: Reversi for the HP48SX (Machine code version) 
  5.   Date: Thu Dec 20 1990 07:53  
  6.  
  7.         A new improved version of my old reversi program!  The main features 
  8. of this version of the proram are: 
  9.  
  10. * Features a true machine code move generator (including ALL searching and 
  11.         position evalulation). 
  12.  
  13. * And a machine code move checker. 
  14.  
  15. These improvements mean that the program runs much faster than 
  16. before and it responds to invalid moves much faster as well (especially 
  17. when the invalid move is a pass). 
  18.  
  19. The user interface remains basically unchanged.  The biggest variation in 
  20. this department is the renumber of the rows of the board to conform to 
  21. normal reversi ordering (row 1 is now at the top!!). 
  22.  
  23. The game is started by pressing the PLAY softkey.  The board will be drawn 
  24. and the player asked if they desire to go first (this question should be 
  25. answered Y or N).  To enter a move, you should first type the column number 
  26. 1 (left most) to 8 (right most) followed by the column number 1 (top) to 
  27. 8 (bottom).  Your move will be made if it is legal. 
  28.  
  29. The other commands available are: 
  30.  
  31. key | action 
  32. ----+----------------------------------------------- 
  33.  P  | Pass move (only allowed if no moves are legal) 
  34.  Q  | Quit game 
  35.  O  | Turn calculator off 
  36.  U  | Take back last move (once only) 
  37.  
  38. The input code will turn the calculator off if no key is pressed for a 
  39. minute and pressing on will continue the game as if nothing had happened. 
  40.  
  41. If anybody finds problems with this program or can think of improvements 
  42. I'd like to hear about them.  I don't want to hear from people who think 
  43. that the display of moves is too slow; I made the making of moves slow on 
  44. purpose (So that a player can see what effect a move really had while 
  45. playing.  A move that just appears on the display is quite disconcerting 
  46. to the player). 
  47.  
  48. This version of the program doesn't play as well as the previous version 
  49. (which is a bit of a pity since the older version played a good novice 
  50. game).  This is mainly due to the very primative evaluation function 
  51. which is used (it simply counts the number of disks each side has and 
  52. maximizes the difference).  I'm currently working on both improving the 
  53. evaluation function and making the move generator search more than one 
  54. play ahead.  Both of these modifications will improve the play (I hope). 
  55. The updated move selector should only require the replacement of the 
  56. MVGEN routine (neat huh?). 
  57.  
  58.  
  59. The usual disclaimers apply.  (i.e. the stuff about using undocumented 
  60. features of the machine and any damage caused isn't my problem or fault). 
  61. I'm also not responsible for this program causing memory losts.  I'll just 
  62. say that in my calculator they don't cause them, but yours may be different. 
  63.  
  64. The program is also copyright myself 1990, and it cannot be used for any 
  65. commercial purpose without my permission.  Any NON-PROFIT usage is permitted 
  66. without my prior approval. 
  67.  
  68.  
  69. Enjoy...(full listing for HP48 is included at the end of this file). 
  70. If enough interest is shown, I'll post the assembly source for the 
  71. various routines.  (this source is commented quite well, but the comments 
  72. haven't always kept up to date with the code [ it got modified quite a 
  73. lot during its evolution] :-( 
  74.  
  75.  
  76.                                                         Pauli 
  77. seeya 
  78.  
  79. Paul Dale               | Internet/CSnet:            
  80. grue@batserver.cs.uq.oz.au 
  81. Dept of Computer Science| Bitnet:       
  82. grue%batserver.cs.uq.oz.au@uunet.uu.net 
  83. Uni of Qld              | JANET:           
  84. grue%batserver.cs.uq.oz.au@uk.ac.ukc 
  85. Australia, 4072         | EAN:                          
  86. grue@batserver.cs.uq.oz 
  87.                         | UUCP:           
  88. uunet!munnari!batserver.cs.uq.oz!grue 
  89. f4e6g4Qh4++             | JUNET:                     
  90. grue@batserver.cs.uq.oz.au 
  91.